{extend name="layout" /}
{block name="content"}
<div class="table-margin">
    <form action="{:url('system/template')}" class="form-horizontal" method="post">
        <table class="table table-bordered contact-template-form">
            <tbody>
            <tr>
                <td width="20%" align="right"><font color="red">*</font>支付通知：</td>
                <td>
                    <input class="form-control" type="text" name="pay" required="" value="{$info.pay?:''}">
                </td>
            </tr>
            <tr>
                <td width="20%" align="right"><font color="red">*</font>团员到货通知：</td>
                <td>
                    <input class="form-control" type="text" name="arrival" required="" value="{$info.arrival?:''}">
                </td>
            </tr>
            <tr>
                <td width="20%" align="right"><font color="red">*</font>团员退款通知：</td>
                <td>
                    <input class="form-control" type="text" name="return" required="" value="{$info.return?:''}">
                </td>
            </tr>
            <tr>
                <tD></td>
                <td>
                    <input class="btn btn-primary" type="submit" value="提交">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>
<script type="text/javascript">
    $(function () {
        $('form').submit(function(){
            $(this).ajaxSubmit({
                success:function(res) {
                    if(1 == res.code){
                        layer.alert(res.msg, {
                            title: '成功',
                            skin: 'layui-layer-rim',
                            closeBtn: 0,
                            anim: 4
                        }, function(index){
                            layer.close(index);
                            history.go(-1);
                        });
                    }else{
                        layer.alert(res.msg, {icon:2});
                    }
                }
            });
            return false;
        });
    });
</script>
{/block}